<?php
defined('BASEPATH') OR exit('No direct script access allowed');
?>
<div class="container">
<div class="jumbotron" style="margin-top:20px;">

                    <h2 class="road_title">第 <?php echo $page." 页标题替换成功"?></h2>
                    <div class="row" style="margin-left:0px;">
                       <label>准备替换下一页商品</label> <button class="btn btn-sm btn-success btn-flat" id="submitbtn">手动跳转</button>
                    </div>

<div class="alert alert-success" role="alert">
<span id="time">3秒钟后自动跳转</span>
</div>
<form action="" method="post" id="nextpage">
    <input type="hidden" value="<?php echo $ruler;?>" name="ruler">
    <input type="hidden" value="<?php echo $page;?>" name="page">
    <input type="hidden" value="<?php echo $replacetype;?>" name="replacetype">
    <input type="hidden" value="<?php echo $transtitle;?>" name="transtitle">
    <input type="hidden" value="<?php echo $transoption;?>" name="transoption">
    <input type="hidden" value="<?php echo $cleantitle;?>" name="cleantitle">
    
</form>

<script>
	function myClose(){	
        var n=parseInt(time.innerHTML);
        n-=1;
        if(n>0){
            time.innerHTML=n+"秒钟后自动跳转";
            timer=setTimeout(arguments.callee,1000);
        }else{
            $("form#nextpage").submit();
        }
	}
	var timer=null;
	window.onload=function(){
		timer=setTimeout(myClose,1000);
    };
    jQuery("#submitbtn").on("click",function(){
        jQuery("form#nextpage").submit();
    });
</script>

                    

</div>
</div>